package com.bjpowerrnode.javase.array.homework;
/*
在声明一次：所有的System.out.println()方法执行的时候，如果输出的是引用的话，自动调用引用的toString()方法。
 */
public class MystackTest {
    public static void main(String[] args) {
        //创建一个栈对象
        Mystack stack = new Mystack();

        //调用push方法压栈
        stack.push(new Object());
        stack.push(new Object());
        stack.push(new Object());
        stack.push(new Object());
        stack.push(new Object());
        stack.push(new Object());
        stack.push(new Object());
        stack.push(new Object());
        stack.push(new Object());
        stack.push(new Object());
        stack.push(new Object());

        stack.pop();


    }
}
